home *** CD-ROM | disk | FTP | other *** search
-
-
-
- mmmmaaaakkkkeeeemmmmddddbbbbmmmm((((1111MMMM)))) mmmmaaaakkkkeeeemmmmddddbbbbmmmm((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- makemdbm, makedbm - make an NIS mdbm file
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- mmmmaaaakkkkeeeemmmmddddbbbbmmmm [ ----bbbb ] [ ----llll ] [ ----iiii _y_p__i_n_p_u_t__f_i_l_e ] [ ----oooo _y_p__o_u_t_p_u_t__n_a_m_e ]
- [ ----dddd _y_p__d_o_m_a_i_n__n_a_m_e ] [ ----mmmm _y_p__m_a_s_t_e_r__n_a_m_e ] _i_n_f_i_l_e _o_u_t_f_i_l_e
- mmmmaaaakkkkeeeemmmmddddbbbbmmmm [ ----uuuu _m_d_b_m_f_i_l_e_n_a_m_e ]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _m_a_k_e_m_d_b_m takes _i_n_f_i_l_e and converts it to a file in _m_d_b_m(3B) format. Each
- line of the input file is converted to a single _m_d_b_m record. All
- characters up to the first tab or space form the key, and the rest of the
- line is the data. If a line ends with \, then the data for that record
- is continued on to the next line. It is left for the clients of the
- network information service (NIS) to interpret #; _m_a_k_e_d_b_m does not itself
- treat it as a comment character. _i_n_f_i_l_e can be ----, in which case standard
- input is read.
-
- _m_a_k_e_m_d_b_m is meant to be used in generating _m_d_b_m files for NIS. It
- generates a special entry with the key _y_p__l_a_s_t__m_o_d_i_f_i_e_d, which is the
- date of _i_n_f_i_l_e (or the current time, if _i_n_f_i_l_e is ----).
-
- OOOOPPPPTTTTIIIIOOOONNNNSSSS
- ----llll Convert all uppercase characters in the keys to lowercase.
-
- ----iiii _y_p__i_n_p_u_t__f_i_l_e
- Create a special entry with the key _Y_P__I_N_P_U_T__F_I_L_E.
-
- ----oooo _y_p__o_u_t_p_u_t__n_a_m_e
- Create a special entry with the key _Y_P__O_U_T_P_U_T__N_A_M_E.
-
- ----dddd _y_p__d_o_m_a_i_n__n_a_m_e
- Create a special entry with the key _Y_P__D_O_M_A_I_N__N_A_M_E.
-
- ----mmmm _y_p__m_a_s_t_e_r__n_a_m_e
- Create a special entry with the key _Y_P__M_A_S_T_E_R__N_A_M_E. If no master
- hostname is specified, _y_p__m_a_s_t_e_r__n_a_m_e is set to the local hostname.
-
- ----uuuu _m_d_b_m_f_i_l_e_n_a_m_e
- Undo a _m_d_b_m file. That is, print out a _m_d_b_m file one entry per
- line, with a single space separating keys from values.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEE
- It is easy to write shell scripts to convert standard files such as
- /_e_t_c/_p_a_s_s_w_d to the key value form used by _m_a_k_e_m_d_b_m. For example,
-
- #!/usr/bin/awk -f
- BEGIN { FS = ":"; OFS = "\t"; }
- { print $1, $0 }
-
- takes the /_e_t_c/_p_a_s_s_w_d file and converts it to a form that can be read by
- _m_a_k_e_m_d_b_m to make the NIS file _p_a_s_s_w_d._b_y_n_a_m_e. That is, the key is a
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- mmmmaaaakkkkeeeemmmmddddbbbbmmmm((((1111MMMM)))) mmmmaaaakkkkeeeemmmmddddbbbbmmmm((((1111MMMM))))
-
-
-
- username, and the value is the remaining line in the /_e_t_c/_p_a_s_s_w_d file.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- yppasswd(1), nis(1M), mdbm(3B).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-